package com.lanjiyin.cloud.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.lanjiyin.cloud.auth.client.EnableLanJiYinYeAuthClient;
import com.lanjiyin.cloud.cache.EnableLanJiYinYeCache;
import com.spring4all.swagger.EnableSwagger2Doc;

@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableFeignClients({ "com.lanjiyin.cloud.auth.client.feign" })
@EnableScheduling
@EnableLanJiYinYeAuthClient
@EnableLanJiYinYeCache
@EnableTransactionManagement
@MapperScan("com.lanjiyin.cloud.admin.mapper")
@ComponentScan(basePackages = "com.lanjiyin.cloud")
@EnableSwagger2Doc
public class AdminBootstrap {
	public static void main(String[] args) {
		new SpringApplicationBuilder(AdminBootstrap.class).run(args);
	}
}
